package com.cyam.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cyam.domain.Comments;
import com.cyam.mapper.CommentsMapper;
import com.cyam.service.CommentsService;
import com.cyam.util.Pager;

@Service
@Transactional
public class CommentsServiceImpl implements CommentsService {
	
	@Resource
	private CommentsMapper commentsMapper;

	@Override
	public void save(Comments t) throws Exception {
		commentsMapper.insertObject(t);
	}

	@Override
	public void update(Comments t) throws Exception {
		// TODO Auto-generated method stub

	}

	@Override
	public void remove(int id) throws Exception {
		// TODO Auto-generated method stub

	}

	@Override
	public List<Comments> findAll(Map<String, Object> map) throws Exception {
		return commentsMapper.selectAll(map);
	}

	@Override
	public Comments findOne(Map<String, Object> map) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Pager findPager(Map<String, Object> map, int page, int size) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Pager countPager(Map<String, Object> map, int page, int size) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

}
